﻿<Window x:Class="OpenExpressApp.ConfigWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="配置窗口" Height="274" Width="360" ResizeMode="CanMinimize">
    <Window.Resources>
        <Style TargetType="TextBox">
            <Setter Property="Margin" Value="2"/>
        </Style>
    </Window.Resources>
    <Grid TextBoxBase.TextChanged="TextChanged">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition Width="200"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <Label VerticalAlignment="Top" HorizontalAlignment="Left" Grid.Row="0" Grid.Column="0">数据库服务器地址：</Label>
        <TextBox Name="txtDB_Server" Grid.Row="0" Grid.Column="1"/>
        <Label Grid.Row="1" Grid.Column="0">数据库用户名：</Label>
        <TextBox Name="txtDB_UserID" Grid.Row="1" Grid.Column="1"/>
        <Label Grid.Row="2" Grid.Column="0">数据库密码：</Label>
        <TextBox Name="txtDB_Password" Grid.Row="2" Grid.Column="1"/>
        <Label Grid.Row="3" Grid.Column="0">数据通信端口号：</Label>
        <TextBox Name="txtWCFPort" Grid.Row="3" Grid.Column="1"/>
        <Label Grid.Row="4" Grid.Column="0">GIX4库名：</Label>
        <TextBox Name="txtDBName_GIX4" Grid.Row="4" Grid.Column="1"/>
        <Label Grid.Row="5" Grid.Column="0">Estimate库名：</Label>
        <TextBox Name="txtDBName_Estimate" Grid.Row="5" Grid.Column="1"/>
        <Label Grid.Row="6" Grid.Column="0">BQNorm库名：</Label>
        <TextBox Name="txtDBName_BQNorm" Grid.Row="6" Grid.Column="1"/>
        <Label Grid.Row="7" Grid.Column="0">OpenExpressApp库名：</Label>
        <TextBox Name="txtDBName_OpenExpressApp" Grid.Row="7" Grid.Column="1"/>
        <Button Grid.Row="8" Grid.ColumnSpan="2" HorizontalAlignment="Right" Name="BSave" VerticalAlignment="Top" Click="BSave_Click">保存</Button>
    </Grid>
</Window>
